package com.example.Inheritance;

/*
public class Zi extends Fu {
    int a = 20;

    public void method() {
        int a = 30;
        System.out.println(a);

        System.out.println(this.a);

        System.out.println(super.a);
    }
}
*/


/*
public class Zi extends Fu {
    public void show() {
        System.out.println("子类show方法");
    }
    public void method(){
        this.show();
        super.show();
    }
}
*/


/*
public class Zi extends Fu {
    public void smallBlack() {
        super.smallBlack();
        System.out.println("说中文");
    }
}
*/


/*
public class Zi extends Fu {
    @Override   //注解 检查当前的方法是否是一个正的重写方法
    public void show() {
        System.out.println("Zi ...");
    }
}
*/


public class Zi extends Fu {

}